class A:
    def test(self):
        print("AAA")

class B:
    def test(self):
        print('B中的test()方法~~')

    def test2(self):
        print('BBB')

class C(A,B):
    pass

c = C()
c.test()